package com.ruoyi.common.utils;

import com.ruoyi.common.constant.Constants;
import com.ruoyi.project.digital.domain.Apply;
import com.ruoyi.project.digital.domain.dto.LoginWechatUser;

import com.ruoyi.project.remake.domain.dto.LoginRemake;

public class AuthUtil {
    public  static LoginRemake getRemake(){
        LoginRemake loginRemake=(LoginRemake) ThreadLocalMap.get(Constants.REMAKE_AUTH);
        if(null==loginRemake){
            loginRemake=new LoginRemake();
            loginRemake.setId(1L);
            loginRemake.setRemakeName("测试");
            loginRemake.setLoginName("ceshi");
        }
        return loginRemake;
    }

   public static LoginWechatUser getWechatUser(){
        return (LoginWechatUser) ThreadLocalMap.get(Constants.MEMBER_AUTH);
    }



    /* public static LoginStationUser getStationUser(){
        return (LoginStationUser) ThreadLocalMap.get(Constants.STATION_AUTH);
    }

    public static LoginAgent getAgent(){
        return (LoginAgent) ThreadLocalMap.get(Constants.AGENT_AUTH);
    }*/
}
